import Vue from 'vue'
import VueRouter from "vue-router";
import NowPlaying from "@/pages/NowPlaying.vue";
import Comming from "@/pages/Comming.vue";
import Detail from "@/pages/Detail.vue";

Vue.use(VueRouter);
const router = new VueRouter({
    mode:"history",
    routes:[
        {
            path:'/nowplaying',
            component:NowPlaying
        },
        {
            path:'/comming',
            component:Comming
        },
        {
            path:'/',
            redirect:'nowplaying'
        },
        {
            path:'/detail',
            component:Detail
        }
    ]
});
export default router;